// import { register } from "@aotoo/react-cell";
import { register } from "./cell";

function TextareaInput(props) {
  const value = props.defaultValue||''
  const conter = props.max ? <p className='item-count'>{'('+value.length +'/'+ props.max+')'}</p> : null
  
  return (
    <div className='wid-p100 ss-relative'>
      <textarea {...props} />
      {conter}
    </div>
  )
}

register( "Textarea", [ 'textarea' ], TextareaInput );